package pl.edu.agh.logview.model;

public abstract class AbstractVertex implements Vertex {
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public Object getVertexObject() {
		return vertexObject;
	}
	public void setVertexObject(Object vertexObject) {
		this.vertexObject = vertexObject;
	}
	public VertexType getVertexType() {
		return vertexType;
	}
	public void setVertexType(VertexType vertexType) {
		this.vertexType = vertexType;
	}
	private int x;
	private int y;
	
	private Object vertexObject;
	protected VertexType vertexType;
	
	public int getCenterX() {
		return (int) (x+ (vertexType.getWidth() / 2) );
	}
	
}
